
const language = {};

export default function getLanguage() {
    return new Promise((resolve, reject) => {
        this.props.MultiInit.getMultiLang({
            moduleId: 'p6007',
            domainName: 'hrhi',
            callback: (json, status, init) => {
                Object.assign(language, json);
                resolve(json);
            }
        });
    });
}